﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public static class ComparerEx
    {
    }

    public class DelegateComparer<T> : IComparer<T>
    {
        private Comparison<T> m_Compare;

        public DelegateComparer(Comparison<T> compare)
        {
            this.m_Compare = compare;
        }

        public Int32 Compare(T x, T y)
        {
            return this.m_Compare(x, y);
        }
    }

}
